package com.chengwang.bookstory.service.Imple;

import com.chengwang.bookstory.mapper.ManagerMapper;
import com.chengwang.bookstory.pojo.Manager;
import com.chengwang.bookstory.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagerServiceImple implements ManagerService {
    @Autowired
    private ManagerMapper managerMapper;
    @Override
    public boolean mlogin(Manager manager) {
        Manager manager1 = managerMapper.selectOne(manager);
        if (manager1==null){
            return false;
        }else {
            return true;
        }
    }
}
